#ifndef MDX2_EVENT_H_
#define MDX2_EVENT_H_

#include <cstdint>
#include "Vector3D.h"

// Description: Defines what happens when an event is triggered.
// Count:  MDX2_Header->nEvents
// Offset: MDX2_Header->ofsEvents
struct MDX2_Event
{
    char Identifier[4];
    uint32_t Data;
    uint32_t Bone;
    Vec3F Position;
    int16_t InterpolationType;
    int16_t GlobalSequence;
#if MDX_BUILD < 28
    uint32_t nRanges;
    uint32_t ofsRanges;
#endif
    uint32_t nTimestamps;
    uint32_t ofsTimestamps;
};

#endif // MDX2_EVENT_H_